<h1>Welcome to the Application Wiki</h1>
<table><tr><td valign=top><h2>Create a new area</h2></td><td valign=top>
<br/>
<form method=post>
Please create a 
<select name="handler">
 <option value="group">group</option>
 <option value="person">person</option>
 <option value="photo">photos</option>
 <option value="chat">chat</option>
 <option value="scrapbook" selected>scrapbook</option>
 <option value="wiki">wiki</option>
 <option value="exchange">exchange</option>
 <option value="folder">folder</option>
</select>
area at 
<input name="uid" value="" /> <input type=submit value="go!" />
<br/>
</form>
</td></tr>
<tr><td valign=top><h2>Join a recently created area&nbsp;&nbsp;&nbsp;</h2></td><td valign=top>
<br/>
<table>
<%
  # TODO: this is not strictly a good practice... to mix code in here.
  @areas = Note.find_roots(@user)
  @areas.each do |area|
    write "<tr><td><a href='#{area.relative_url}'>#{area.uid}</a></td><td>type=#{area.handler}</td></tr>\n"
  end
%>
</table>
</td></tr>
<tr><td valign=top>
<h2>See recent visitors</h2>
</td><td valign=top>
<br/>
<table>
<%
  @users = User.find(:all,:offset=>0,:limit=>100,:order=>"id desc")
  @users.each do |user|
    write "<tr><td><a href='#{user.login}'>#{user.login}</a></td><td>#{user.title}</td></tr>\n"
  end
%>
</table>
</td></tr></table>
